import request from '@/utils/request'

// 创建存储广告图片信息
export function createAdpicture(data) {
  return request({
    url: '/system/adpicture/create',
    method: 'post',
    data: data
  })
}

// 更新存储广告图片信息
export function updateAdpicture(data) {
  return request({
    url: '/system/adpicture/update',
    method: 'put',
    data: data
  })
}

// 删除存储广告图片信息
export function deleteAdpicture(id) {
  return request({
    url: '/system/adpicture/delete?id=' + id,
    method: 'delete'
  })
}

// 获得存储广告图片信息
export function getAdpicture(id) {
  return request({
    url: '/system/adpicture/get?id=' + id,
    method: 'get'
  })
}

// 获得存储广告图片信息分页
export function getAdpicturePage(params) {
  return request({
    url: '/system/adpicture/page',
    method: 'get',
    params
  })
}
// 导出存储广告图片信息 Excel
export function exportAdpictureExcel(params) {
  return request({
    url: '/system/adpicture/export-excel',
    method: 'get',
    params,
    responseType: 'blob'
  })
}